﻿		<?php
				session_start();

				include_once("../database/DataBase.php");
				include_once("../Class/Company.Class.php");

				$phone_no	= $_POST["phone_no"];
				$email		= $_POST["email"];
				$location	= $_POST["location"];
				$category	= $_POST["category"];
				$logo		= $_POST["logo"];
				
				$database = New DataBase();
				$database->open_connection();
				/*
				$result = $database->getUserByLogin($login_id, $pwd);
				
				if(!is_null($result)){
					echo "true";
					$user = new User();
					$user->setUser($result);
					$database->LogAction($user->getUID(), "Login", "Login from IP: ");
					$_SESSION["uid"] = $user->getUID();
					$_SESSION["login_id"] = $user->getLoginID();
					$_SESSION["company_id"] = $user->getCompanyID();
				}
				else{
					echo "Login name or password error!";
				}
				*/
				$database->close_connection();
		?>